/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Base for creating a custom VGUI class; remove the functions you don't use.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/



local PANEL = {}

local HelpText = "    Before playing, please take a few minutes to read this help menu and familiarize yourself with the server controls.\n\n    F2 brings up the Player Menu, which can be used to purchase items in the store, add friends to your prop protection, view your inventory, or read this help menu. For moderators and above only, F3 brings up the admin menu for your commands. Once you reach the rank of \"Member\" you gain the \"T\" flag, which gives you access to the !goto <name>, !bring <name>, and !tp text commands. Pressing F4 brings up the server radio, but you are only given clientside access if you do not have the \"J\" flag.\n\nRules:\n\n    Please reframe from spamming both on the mic and chat and act like a respectable player. Otherwise, act sensible and don't force us to kick and/or ban you for idiotic actions.\n\n\nHave fun!"
local Welcome = "Welcome to the Pleasurable Obituary [PO] Build Server"

surface.CreateFont( "Default", 30, 250, true, true, "WFont" )

function PANEL:Init()
	//Create controls here
	
	local ServerWelcome = vgui.Create( "DPanel", self )
		
		self.ServerWelcome = ServerWelcome
	local SLabel = vgui.Create( "DLabel", ServerWelcome )
		SLabel:SetFont( "MenuLarge" )
		SLabel:SetTextColor( color_white )
		SLabel:SetText( Welcome )
		SLabel:SizeToContents()
		
		self.SLabel = SLabel
		
	local TEntry = vgui.Create( "DTextEntry", self )
		TEntry:SetMultiline( true )
		TEntry:SetValue( HelpText )
		TEntry:SetEditable( false )
		print( TEntry:GetValue() )
		
		self.TEntry = TEntry
		

end

function PANEL:PerformLayout()
	// Let's make sure we perform the layout of the class this panel is based on here as well.
	
	self.BaseClass.PerformLayout( self )
	
	self.ServerWelcome:SetSize( self:GetWide(), 54 )
	self.SLabel:AlignBottom( 10 )
	self.SLabel:Center()
	
	self.TEntry:StretchToParent( 0, 58, 0, 0 )

end

function PANEL:Paint()
	//Do Painting here
	self.BaseClass.Paint( self )
	
	function self.ServerWelcome:Paint()
		surface.SetDrawColor( color_black )
		surface.DrawRect( 1, 1, self:GetWide() - 2, self:GetTall() - 2 )
	end

end

function PANEL:PaintOver()

	//Paint over self and child elements here.

end

function PANEL:Think()
	//Think stuff here

end

function PANEL:OnCursorEntered()

	//Do stuff when the cursor enters the panel

end

function PANEL:OnCursorExited()

	//Do Stuff when the cursor leaves the panel

end

function PANEL:OnMouseWheeled()

	//Do stuff when you wheel the mouse on this panel

end

function PANEL:OnMousePressed()

	//Do stuff when you press the mouse on this panel

end

function PANEL:OnMouseReleased()

	//Do stuff when you release the mouse on this panel

end

function PANEL:OnKeyCodePressed()

	//Do stuff when using keys from the keyboard on this panel. This hook uses the keycode enumerations
	//http://wiki.garrysmod.com/?title=P.OnKeyCodePressed	For more information

end

function PANEL:ActionSignal()

	//This is called on the parent frame when a child VGUI element is used. The key corresponds to what is set by Panel.SetCommand.
	//From the wiki
	
end

function PANEL:OnCursorMoved()

	//From the wiki
	//Called whenever the the mouse is moved within the panel.

end

function PANEL:DoClick()

	//For button type panels, use this. Called when you click the button.

end


//Register syntax - Desired element name, Panel to use, base class of the new element.
vgui.Register( "HelpMenu", PANEL, "DPanel" )